#!/bin/bash

#Translation
export TEXTDOMAINDIR="/usr/share/locale-langpack"
export TEXTDOMAIN=bigcontrolcenter-hardware-printer

kdialog --yesno $"O monitor de fila de impressao deve aparecer
automaticamente ao utilizar a impressora?"
resposta=$?
if [ "$resposta" = "0" ]; then

echo '#!/bin/bash

/usr/bin/printer-applet
' > ~/.kde/Autostart/printer-applet
chmod +x  ~/.kde/Autostart/printer-applet
else
rm -f ~/.kde/Autostart/printer-applet
fi

if [ "$(ps -x | grep "/usr/bin/printer-applet --show" | sed '/grep/d')" = "" ]; then
/usr/bin/printer-applet --show
else
kdialog --passivepopup $"Para visualizar a fila de impressao clique no icone de impresssora na area de notificacao."
fi